﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Globalization;
using Public;

namespace SalomonWebsite.MP
{
    public partial class Base : System.Web.UI.MasterPage
    {
        public string HotLine;
        public string SiteKeywords;
        public string SiteDescription;
        public string ICP;
        public string SiteName;
        public string Email;

        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable dtConfig = Bll.ConfigInfo.MULTIPLE(Global.Connection);
            if (dtConfig.Rows.Count == 1)
            {
                SiteName = dtConfig.Rows[0]["SiteName"].ToString();
                SiteKeywords = dtConfig.Rows[0]["SiteKeywords"].ToString();
                SiteDescription = dtConfig.Rows[0]["SiteDescription"].ToString();
                ICP = dtConfig.Rows[0]["SiteICP"].ToString();
                HotLine = dtConfig.Rows[0]["HotLine"].ToString();
                Email = dtConfig.Rows[0]["Email"].ToString();;

            }
            dtConfig.Dispose();
        }
    }
}
